﻿using System;
using System.Collections.Generic;
using System.Text;

namespace ConsoleApp1
{
    class Role
    {
        //作业一
        //1、创建一个控制台应用程序，该程序名为ClassTest,在该程序中创建一个以Role为类名的、包含以下成员的一个类。
        //角色名、性别、出处、地位、门派地位、爱侣、父亲、母亲：

        public string roleName;
        public string gender;
        public string from;
        public string status;
        public string familystatus;
        public string lovepartner;
        public string father;
        public string mother;


        public Role(string RoleName, string Gender, string From, string Status,
            string Familystatus, string Lovepartner, string Father, string Mother)
        {
            this.roleName = RoleName;
            this.gender = Gender;
            this.from = From;
            this.status = Status;
            this.familystatus = Familystatus;
            this.lovepartner = Lovepartner;
            this.father = Father;
            this.mother = Mother;
        }
        public void info()
        {
            Console.WriteLine("角色是{0}，性别为{1}，来自{2}，地位{3}，门派地位{4}，爱侣是{5}，父亲是{6}，母亲是{7}", roleName, gender, from, status, familystatus, lovepartner,father,mother);
        }
    }

}
